package com.qf.bookshop2.util;

import org.apache.shiro.crypto.hash.Sha256Hash;

public class StringUtil {

    public static String toSHA256(String password,String salt,int item){
        String s = new Sha256Hash(password, salt, item).toBase64();//sha256加密


        return s;
    }
}
